package base;

import java.util.ArrayList;
import java.util.Arrays;

public class T6 {
    public static void main(String[] args) {
        final int[] a = new int[]{1, 2, 3, 4};
        a[0] = 100;
        System.out.println(Arrays.toString(a));
        System.out.println("====================");
        Son son = new Son("张三");
        System.out.println(son);
        System.out.println("+++++++++++++++++++++++++");
        System.out.println(paLow(9));
    }

    public static int paLow(int n) {
        int[] f = new int[n+1];
        f[0]=0;
        f[1]=1;
        f[2]=2;
        for (int i = 3; i <=n ; i++) {
            f[i] = f[i-1]+f[i-2];
        }
        return f[n];
    }
}

class Father {
    String name;

    public Father(String name) {
        this.name = name;
    }
}

class Son extends Father {
    String name;

    public Son(String name) {
        super(name);
        this.name = name;
    }
}


